package models;

import siena.*;
import java.util.ArrayList;

public class Supply extends Model {

	@Id(Generator.AUTO_INCREMENT)
	private Long id;
	@NotNull
	private String name;
	@NotNull
	private int quantity;
	private ArrayList<Long>bringingUsers;
	private ArrayList<Integer>bringingQuantity;
	
	public Supply(String name, int quantity){
		this.name = name;
		this.quantity = quantity;
		bringingUsers = new ArrayList<Long>();
		bringingQuantity = new ArrayList<Integer>();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public ArrayList<Long> getBringingUsers() {
		return bringingUsers;
	}

	public void setBringingUsers(ArrayList<Long> bringingUsers) {
		this.bringingUsers = bringingUsers;
	}

	public ArrayList<Integer> getBringingQuantity() {
		return bringingQuantity;
	}

	public void setBringingQuantity(ArrayList<Integer> bringingQuantity) {
		this.bringingQuantity = bringingQuantity;
	}
}
